package org.batallademusica.dao;

import javax.persistence.EntityManager;

public class RunningEntityManager {
	EntityManager entityManager;
	private Long ultimoAcceso;
	
	public EntityManager getEntityManager() {
		this.ultimoAcceso=System.currentTimeMillis();
		return this.entityManager;
	}
	
	
	public Long getUltimoAcceso(){
		return this.ultimoAcceso;
	}

	public RunningEntityManager(EntityManager em){
		this.entityManager=em;
		this.ultimoAcceso=System.currentTimeMillis();
	}
}
